#ifndef __SCENE_IMAGE_SAVER_H__
#define __SCENE_IMAGE_SAVER_H__


#include <QtWidgets/QtWidgets>
#include "SceneEditor.h"


class SceneImageSaver : public QObject
{
    Q_OBJECT
    Q_DISABLE_COPY(SceneImageSaver);

signals:
    void started();
    void totalStep(int);
    void progress(int, const QString &);
    void finished(int, const QString &);

public slots:
    void run();

public:
    SceneImageSaver(const QImageInfoList &bkgndList, const QImageInfoList &maskList,
                    const QString &filePath);
    virtual ~SceneImageSaver();

protected:
    const QImageInfoList    &mBkgndList;
    const QImageInfoList    &mMaskList;

    QString     mImagePath;
    QString     mFilePath;
};


#endif  /*__SCENE_IMAGE_SAVER_H__*/
